- name: Set up those proxy redirects.  Wow!
  hosts: proxies-stg:proxies
  user: root
  gather_facts: True

  vars_files:
   - /srv/web/infra/ansible/vars/global.yml
   - "/srv/private/ansible/vars.yml"
   - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml

  handlers:
  - import_tasks: "{{ handlers_path }}/restart_services.yml"

  roles:

  # An exceptional rewrite for bugz.fp.o
  - role: packages3/bugz.fp.o
    website: bugz.fedoraproject.org


  # Various app redirects
  - role: httpd/redirect
    shortname: community
    website: admin.fedoraproject.org
    path: /community
    target: https://apps.fedoraproject.org/packages

  - role: httpd/redirect
    shortname: nagios
    website: admin.fedoraproject.org
    path: /nagios
    target: https://nagios.fedoraproject.org/nagios/

  - role: httpd/redirect
    shortname: docs
    website: fedoraproject.org
    path: /docs
    target: https://docs.fedoraproject.org/

  - role: httpd/redirect
    shortname: elections
    website: admin.fedoraproject.org
    path: /voting
    target: https://admin.fedoraproject.org/voting

  - role: httpd/redirect
    shortname: people-fp-o
    website: people.fedoraproject.org
    target: https://fedorapeople.org/

  - role: httpd/redirect
    shortname: fas
    website: fas.fedoraproject.org
    target: https://admin.fedoraproject.org/accounts/

  - role: httpd/redirectmatch
    shortname: codecs
    website: codecs.fedoraproject.org
    regex: ^.*/(.*openh264.*.rpm$)
    target: http://ciscobinary.openh264.org/$1

  - role: httpd/redirect
    shortname: jenkins
    website: jenkins.fedorainfracloud.org
    target: https://jenkins-fedora-infra.apps.ci.centos.org

  - role: httpd/redirectmatch
    shortname: fpaste
    website: fpaste.org
    regex: /(.*)$
    target: https://paste.fedoraproject.org/$1

  - role: httpd/redirectmatch
    shortname: mailman
    website: admin.fedoraproject.org
    regex: /mailman/(.*)$
    target: https://lists.fedoraproject.org/mailman/$1

  - role: httpd/redirectmatch
    shortname: mailman-pipermail
    website: admin.fedoraproject.org
    regex: /pipermail/(.*)$
    target: https://lists.fedoraproject.org/pipermail/$1

  - role: httpd/redirectmatch
    shortname: 00-bodhi2-cutover-users
    website: admin.fedoraproject.org
    regex: /updates/user/(.*)$
    target: https://bodhi.fedoraproject.org/users/$1

  - role: httpd/redirectmatch
    shortname: 01-bodhi2-cutover-comments-list
    website: admin.fedoraproject.org
    regex: /updates/comments$
    target: https://bodhi.fedoraproject.org/comments/

  # This one is sub-optimal, but we have no way to map /mine to /$username
  - role: httpd/redirectmatch
    shortname: 02-bodhi2-mine-fallback
    website: admin.fedoraproject.org
    regex: /updates/mine$
    target: https://bodhi.fedoraproject.org/

  # This is similar to /mine.  Ideally, we would redirect to
  # /overrides/?user=$USERNAME, but we can't get that username afaik.
  - role: httpd/redirectmatch
    shortname: 03-bodhi2-cutover-overrides-list
    website: admin.fedoraproject.org
    regex: /updates/override/list$
    target: https://bodhi.fedoraproject.org/overrides/

  - role: httpd/redirectmatch
    shortname: 04-bodhi2-new-update-gotcha
    website: admin.fedoraproject.org
    regex: /updates/new/*$
    target: https://bodhi.fedoraproject.org/updates/new

  - role: httpd/redirectmatch
    shortname: 05-bodhi2-api-version
    website: admin.fedoraproject.org
    regex: /updates/api_version$
    target: https://bodhi.fedoraproject.org/api_version

  - role: httpd/redirectmatch
    shortname: 06-bodhi2-login
    website: admin.fedoraproject.org
    regex: /updates/login$
    target: https://bodhi.fedoraproject.org/login

  - role: httpd/redirectmatch
    shortname: 07-bodhi2-logout
    website: admin.fedoraproject.org
    regex: /updates/logout$
    target: https://bodhi.fedoraproject.org/logout

  - role: httpd/redirectmatch
    shortname: 08-bodhi2-rss
    website: admin.fedoraproject.org
    regex: /updates/rss/rss2\.0
    target: https://bodhi.fedoraproject.org/updates

  - role: httpd/redirectmatch
    shortname: 09-bodhi2-old-search-new-search
    website: admin.fedoraproject.org
    regex: /updates/search/(.+)$
    target: https://bodhi.fedoraproject.org/updates/?like=$1

  - role: httpd/redirectmatch
    shortname: 89-bodhi2-icon
    website: admin.fedoraproject.org
    regex: /updates/static/images/bodhi-icon-48.png$
    target: https://apps.fedoraproject.org/img/icons/bodhi.png

  - role: httpd/redirectmatch
    shortname: 90-bodhi2-cutover-updates
    website: admin.fedoraproject.org
    regex: /updates/(.+)$
    target: https://bodhi.fedoraproject.org/updates/$1

  - role: httpd/redirectmatch
    shortname: 91-bodhi2-cutover-baseline
    website: admin.fedoraproject.org
    regex: /updates/*$
    target: https://bodhi.fedoraproject.org/

  # See https://github.com/fedora-infra/bodhi/issues/476
  - role: httpd/redirectmatch
    shortname: send-user-to-users
    website: bodhi.fedoraproject.org
    regex: /user/(.*)$
    target: https://bodhi.fedoraproject.org/users/$1

  - role: httpd/redirect
    shortname: get-fedora
    website: get.fedoraproject.org
    target: https://getfedora.org/

  - role: httpd/redirect
    shortname: flocktofedora
    website: flocktofedora.net
    target: https://flocktofedora.org/

  - role: httpd/redirect
    shortname: fedoramy
    website: fedora.my
    target: http://www.fedora.my/

  - role: httpd/redirect
    shortname: copr
    website: copr.fedoraproject.org
    target: https://copr.fedorainfracloud.org/

  - role: httpd/redirect
    shortname: join-fedora
    website: join.fedoraproject.org
    target: https://fedoraproject.org/wiki/Join

  - role: httpd/redirect
    shortname: get-help
    website: help.fedoraproject.org
    target: https://fedoraproject.org/get-help

  - role: httpd/redirect
    shortname: l10n
    website: l10n.fedoraproject.org
    target: https://translate.fedoraproject.org/

  # This is just a redirect to developer, to make it easier for people to get
  # here from Red Hat's developers.redhat.com (ticket #5216).
  - role: httpd/redirect
    shortname: developers
    website: developers.fedoraproject.org
    target: https://developer.fedoraproject.org/

  # Redirect fudcon.fedoraproject.org to flocktofedora.org
  - role: httpd/redirect
    shortname: fudcon
    website: fudcon.fedoraproject.org
    path: /index.html
    target: https://flocktofedora.org/

  # Redirect specific websites from fedoraproject.org to getfedora.org
  - role: httpd/redirect
    shortname: main-fedoraproject
    website: fedoraproject.org
    path: /index.html
    target: https://getfedora.org/

  - role: httpd/redirect
    shortname: get-fedora-old
    website: fedoraproject.org
    path: /get-fedora
    target: https://getfedora.org/

  - role: httpd/redirect
    shortname: sponsors
    website: fedoraproject.org
    path: /sponsors
    target: https://getfedora.org/sponsors

  - role: httpd/redirect
    shortname: code-of-conduct
    website: fedoraproject.org
    path: /code-of-conduct
    target: https://docs.fedoraproject.org/fedora-project/project/code-of-conduct.html

  - role: httpd/redirect
    shortname: code-of-conduct-2
    website: getfedora.org
    path: /code-of-conduct
    target: https://docs.fedoraproject.org/fedora-project/project/code-of-conduct.html

  - role: httpd/redirect
    shortname: verify
    website: fedoraproject.org
    path: /verify
    target: https://getfedora.org/verify

  - role: httpd/redirect
    shortname: keys
    website: fedoraproject.org
    path: /keys
    target: https://getfedora.org/keys

  - role: httpd/redirect
    shortname: release-banner
    website: fedoraproject.org
    path: /static/js/release-counter-ext.js
    target: https://getfedora.org/static/js/release-counter-ext.js

#
# When there is no prerelease we redirect the prerelease urls
# back to the main release.
# This should be disabled when there is a prerelease

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-gfo-ws
    website: getfedora.org
    regex: /(.*)workstation/prerelease.*$
    target: https://stg.getfedora.org/$1/workstation
    when: env == 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-gfo-srv
    website: getfedora.org
    regex: /(.*)server/prerelease.*$
    target: https://stg.getfedora.org/$1/server
    when: env == 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-gfo-atomic
    website: getfedora.org
    regex: /(.*)atomic/prerelease.*$
    target: https://stg.getfedora.org/$1/atomic
    when: env == 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-labs-1
    website: labs.fedoraproject.org
    regex: /(.*)prerelease.*$
    target: https://labs.stg.fedoraproject.org/$1
    when: env == 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-spins-1
    website: spins.fedoraproject.org
    regex: /(.*)prerelease.*$
    target: https://spins.stg.fedoraproject.org/$1
    when: env == 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-arm-1
    website: arm.fedoraproject.org
    regex: /(.*)prerelease.*$
    target: https://arm.stg.fedoraproject.org/$1
    when: env == 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-labs-2
    website: labs.fedoraproject.org
    regex: /prerelease.*$
    target: https://labs.stg.fedoraproject.org/$1
    when: env == 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-spins-2
    website: spins.fedoraproject.org
    regex: /prerelease.*$
    target: https://spins.stg.fedoraproject.org/$1
    when: env == 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-arm-2
    website: arm.fedoraproject.org
    regex: /prerelease.*$
    target: https://arm.stg.fedoraproject.org/$1
    when: env == 'staging'

  - role: httpd/redirectmatch
    shortname: cloud-to-atomic
    website: getfedora.org
    regex: /cloud/.*$
    target: https://alt.stg.fedoraproject.org/cloud/$1
    when: env == 'staging'

  - role: httpd/redirectmatch
    shortname: cloud-to-atomic-download
    website: getfedora.org
    regex: /(.*)/cloud/download.*$
    target: https://alt.stg.fedoraproject.org/$1/cloud
    when: env == 'staging'

# end staging

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-gfo-ws
    website: getfedora.org
    regex: /(.*)workstation/prerelease.*$
    target: https://getfedora.org/$1/workstation
    when: env != 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-gfo-srv
    website: getfedora.org
    regex: /(.*)server/prerelease.*$
    target: https://getfedora.org/$1/server
    when: env != 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-gfo-atomic
    website: getfedora.org
    regex: /(.*)atomic/prerelease.*$
    target: https://getfedora.org/$1/atomic
    when: env != 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-labs-1
    website: labs.fedoraproject.org
    regex: /(.*)/prerelease.*$
    target: https://labs.fedoraproject.org/$1
    when: env != 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-spins-1
    website: spins.fedoraproject.org
    regex: /(.*)/prerelease.*$
    target: https://spins.fedoraproject.org/$1
    when: env != 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-arm-1
    website: arm.fedoraproject.org
    regex: /(.*)/prerelease.*$
    target: https://arm.fedoraproject.org/$1
    when: env != 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-labs-2
    website: labs.fedoraproject.org
    regex: /prerelease.*$
    target: https://labs.fedoraproject.org/$1
    when: env != 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-spins-2
    website: spins.fedoraproject.org
    regex: /prerelease.*$
    target: https://spins.fedoraproject.org/$1
    when: env != 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-arm-2
    website: arm.fedoraproject.org
    regex: /prerelease.*$
    target: https://arm.fedoraproject.org/$1
    when: env != 'staging'

  - role: httpd/redirectmatch
    shortname: prerelease-to-final-alt-1
    website: alt.fedoraproject.org
    regex: /prerelease.*$
    target: https://alt.fedoraproject.org/$1
    when: env != 'staging'

# end of prod prerelease

  - role: httpd/redirectmatch
    shortname: cloud-to-atomic
    website: getfedora.org
    regex: /cloud/.*$
    target: https://alt.fedoraproject.org/cloud/$1
    when: env != 'staging'

  - role: httpd/redirectmatch
    shortname: cloud-to-atomic-download
    website: getfedora.org
    regex: /(.*)/cloud/download.*$
    target: https://alt.fedoraproject.org/$1/cloud
    when: env != 'staging'

  - role: httpd/redirect
    shortname: store
    website: store.fedoraproject.org
    target: "https://redhat.corpmerchandise.com/ProductList.aspx?did=20588"

  # Fonts on the wiki
  - role: httpd/redirect
    shortname: fonts-wiki
    website: fonts.fedoraproject.org
    target: https://fedoraproject.org/wiki/Category:Fonts_SIG

  # Releng
  - role: httpd/redirect
    shortname: nightly
    website: nightly.fedoraproject.org
    target: https://www.happyassassin.net/nightlies.html

  # We retired releng-dash in favor of PDC
  # https://lists.fedoraproject.org/archives/list/rel-eng@lists.fedoraproject.org/thread/LOWVTF6WTS43LNPWDEISLXUELXAH5YXR/#LOWVTF6WTS43LNPWDEISLXUELXAH5YXR
  - role: httpd/redirect
    shortname: releng-dash
    website: apps.fedoraproject.org
    path: /releng-dash
    target: https://pdc.fedoraproject.org/


  # Send fp.com to fp.org
  - role: httpd/redirect
    shortname: site
    website: fedoraproject.com
    target: https://getfedora.org/

  # Planet/people convenience
  - role: httpd/redirect
    shortname: infofeed
    website: fedoraproject.org
    path: /infofeed
    target: http://fedoraplanet.org/infofeed

  - role: httpd/redirect
    shortname: people
    website: fedoraproject.org
    path: /people
    target: http://fedoraplanet.org/

  - role: httpd/redirect
    shortname: fedorapeople
    website: fedoraproject.org
    path: /fedorapeople
    target: http://fedoraplanet.org/

  - role: httpd/redirect
    shortname: planet.fedoraproject.org
    website: planet.fedoraproject.org
    target: http://fedoraplanet.org/

  # QA
  - role: httpd/redirect
    shortname: qa
    website: qa.fedoraproject.org
    target: https://fedoraproject.org/wiki/QA
    when: env != 'staging'


  # Various community sites
  - role: httpd/redirect
    shortname: it-fedoracommunity-redirect
    website: it.fedoracommunity.org
    target: http://www.fedoraonline.it/

  - role: httpd/redirect
    shortname: uk-fedoracommunity-redirect
    website: uk.fedoracommunity.org
    target: http://www.fedora-uk.org/

  - role: httpd/redirect
    shortname: tw-fedoracommunity-redirect
    website: tw.fedoracommunity.org
    target: https://fedora-tw.org/

  # Spins
  - role: httpd/redirect
    shortname: kde
    website: kde.fedoraproject.org
    target: https://spins.fedoraproject.org/kde/


  # Various sites that we are friends with
  - role: httpd/redirect
    shortname: port389
    website: port389.org
    target: http://directory.fedoraproject.org/

  - role: httpd/redirect
    shortname: k12linux
    website: k12linux.org
    target: https://fedorahosted.org/k12linux/


  # Cloudy bits
  - role: httpd/redirect
    shortname: cloud-front-page
    website: cloud.fedoraproject.org
    target: https://alt.fedoraproject.org/cloud/

  - role: httpd/redirectmatch
    shortname: redirect-cloudstart
    website: redirect.fedoraproject.org
    regex: /(console\.aws\.amazon\.com/ec2/v2/home.*)$
    target: https://$1

  ## Cloud image redirects

  # Redirects/pointers for fedora 25 BASE cloud images
  - role: httpd/redirect
    shortname: cloud-base-64bit-25
    website: cloud.fedoraproject.org
    path: /fedora-25.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/25/CloudImages/x86_64/images/Fedora-Cloud-Base-25-1.3.x86_64.qcow2

  - role: httpd/redirect
    shortname: cloud-base-64bit-25-raw
    website: cloud.fedoraproject.org
    path: /fedora-25.x86_64.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/25/CloudImages/x86_64/images/Fedora-Cloud-Base-25-1.3.x86_64.raw.xz

  # Redirects/pointers for fedora 24 BASE cloud images
  - role: httpd/redirect
    shortname: cloud-base-64bit-24
    website: cloud.fedoraproject.org
    path: /fedora-24.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-24-1.2.x86_64.qcow2

  - role: httpd/redirect
    shortname: cloud-base-64bit-24-raw
    website: cloud.fedoraproject.org
    path: /fedora-24.x86_64.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/24/CloudImages/x86_64/images/Fedora-Cloud-Base-24-1.2.x86_64.raw.xz

  # Redirects/pointers for fedora 23 BASE cloud images
  - role: httpd/redirect
    shortname: cloud-base-64bit-23
    website: cloud.fedoraproject.org
    path: /fedora-23.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-23-20151030.x86_64.qcow2

  - role: httpd/redirect
    shortname: cloud-base-64bit-23-raw
    website: cloud.fedoraproject.org
    path: /fedora-23.x86_64.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-23-20151030.x86_64.raw.xz

  - role: httpd/redirect
    shortname: cloud-base-32bit-23-raw
    website: cloud.fedoraproject.org
    path: /fedora-23.i386.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/i386/Images/Fedora-Cloud-Base-23-20151030.i386.raw.xz

  - role: httpd/redirect
    shortname: cloud-base-32bit-23
    website: cloud.fedoraproject.org
    path: /fedora-23.i386.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/i386/Images/Fedora-Cloud-Base-23-20151030.i386.qcow2

  # Redirects/pointers for fedora 23 ATOMIC cloud images
  - role: httpd/redirect
    shortname: cloud-atomic-64bit-23
    website: cloud.fedoraproject.org
    path: /fedora-atomic-23.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Atomic-23-20151030.x86_64.qcow2

  - role: httpd/redirect
    shortname: cloud-atomic-64bit-23-raw
    website: cloud.fedoraproject.org
    path: /fedora-atomic-23.x86_64.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Atomic-23-20151030.x86_64.raw.xz

  # Redirects/pointers for fedora 22 BASE cloud images
  - role: httpd/redirect
    shortname: cloud-base-64bit-22
    website: cloud.fedoraproject.org
    path: /fedora-22.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-22-20150521.x86_64.qcow2

  - role: httpd/redirect
    shortname: cloud-base-64bit-22-raw
    website: cloud.fedoraproject.org
    path: /fedora-22.x86_64.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-22-20150521.x86_64.raw.xz

  - role: httpd/redirect
    shortname: cloud-base-32bit-22-raw
    website: cloud.fedoraproject.org
    path: /fedora-22.i386.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/i386/Images/Fedora-Cloud-Base-22-20150521.i386.raw.xz

  - role: httpd/redirect
    shortname: cloud-base-32bit-22
    website: cloud.fedoraproject.org
    path: /fedora-22.i386.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/i386/Images/Fedora-Cloud-Base-22-20150521.i386.qcow2

  # Redirects/pointers for fedora 22 ATOMIC cloud images
  - role: httpd/redirect
    shortname: cloud-atomic-64bit-22
    website: cloud.fedoraproject.org
    path: /fedora-atomic-22.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Atomic-22-20150521.x86_64.qcow2

  - role: httpd/redirect
    shortname: cloud-atomic-64bit-22-raw
    website: cloud.fedoraproject.org
    path: /fedora-atomic-22.x86_64.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Atomic-22-20150521.x86_64.raw.xz

  # Redirects/pointers for fedora 21 BASE cloud images
  - role: httpd/redirect
    shortname: cloud-base-64bit-21
    website: cloud.fedoraproject.org
    path: /fedora-21.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/x86_64/Fedora-Cloud-Base-20141203-21.x86_64.qcow2

  - role: httpd/redirect
    shortname: cloud-base-64bit-21-raw
    website: cloud.fedoraproject.org
    path: /fedora-21.x86_64.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/x86_64/Fedora-Cloud-Base-20141203-21.x86_64.raw.xz

  - role: httpd/redirect
    shortname: cloud-base-32bit-21-raw
    website: cloud.fedoraproject.org
    path: /fedora-21.i386.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/i386/Fedora-Cloud-Base-20141203-21.i386.raw.xz

  - role: httpd/redirect
    shortname: cloud-base-32bit-21
    website: cloud.fedoraproject.org
    path: /fedora-21.i386.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/i386/Fedora-Cloud-Base-20141203-21.i386.qcow2

  # Redirects/pointers for fedora 21 ATOMIC cloud images
  - role: httpd/redirect
    shortname: cloud-atomic-64bit-21
    website: cloud.fedoraproject.org
    path: /fedora-atomic-21.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/x86_64/Fedora-Cloud-Atomic-20141203-21.x86_64.qcow2

  - role: httpd/redirect
    shortname: cloud-atomic-64bit-21-raw
    website: cloud.fedoraproject.org
    path: /fedora-atomic-21.x86_64.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/x86_64/Fedora-Cloud-Atomic-20141203-21.x86_64.raw.xz

  # Except, there are no 32bit atomic images atm.
  #- role: httpd/redirect
  #  shortname: cloud-atomic-32bit-21-raw
  #  website: cloud.fedoraproject.org
  #  path: /fedora-atomic-21.i386.raw.xz
  #  target: https://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/i386/Fedora-Cloud-Atomic-20141203-21.i386.raw.xz

  #- role: httpd/redirect
  #  shortname: cloud-atomic-32bit-21
  #  website: cloud.fedoraproject.org
  #  path: /fedora-atomic-21.i386.qcow2
  #  target: https://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/i386/Fedora-Cloud-Atomic-20141203-21.i386.qcow2

  # Redirects/pointers for fedora 20 cloud images
  - role: httpd/redirect
    shortname: cloud-64bit-20
    website: cloud.fedoraproject.org
    path: /fedora-20.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/updates/20/Images/x86_64/Fedora-x86_64-20-20140407-sda.qcow2

  - role: httpd/redirect
    shortname: cloud-32bit-20
    website: cloud.fedoraproject.org
    path: /fedora-20.i386.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/updates/20/Images/i386/Fedora-i386-20-20140407-sda.qcow2

  - role: httpd/redirect
    shortname: cloud-64bit-20-raw
    website: cloud.fedoraproject.org
    path: /fedora-20.x86_64.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/updates/20/Images/x86_64/Fedora-x86_64-20-20140407-sda.raw.xz

  - role: httpd/redirect
    shortname: cloud-32bit-20-raw
    website: cloud.fedoraproject.org
    path: /fedora-20.i386.raw.xz
    target: https://download.fedoraproject.org/pub/fedora/linux/updates/20/Images/i386/Fedora-i386-20-20140407-sda.raw.xz

  # Redirects/pointers for fedora 19 cloud images
  - role: httpd/redirect
    shortname: cloud-64bit-19
    website: cloud.fedoraproject.org
    path: /fedora-19.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/updates/19/Images/x86_64/Fedora-x86_64-19-20140407-sda.qcow2

  - role: httpd/redirect
    shortname: cloud-32bit-19
    website: cloud.fedoraproject.org
    path: /fedora-19.i386.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/updates/19/Images/i386/Fedora-i386-19-20140407-sda.qcow2

  # Redirects/pointers for latest fedora cloud images.
  - role: httpd/redirect
    shortname: cloud-64bit-latest
    website: cloud.fedoraproject.org
    path: /fedora-latest.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Base-22-20150521.x86_64.qcow2

  - role: httpd/redirect
    shortname: cloud-32bit-latest
    website: cloud.fedoraproject.org
    path: /fedora-latest.i386.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/i386/Images/Fedora-Cloud-Base-22-20150521.i386.qcow2

  - role: httpd/redirect
    shortname: cloud-atomic-64bit-latest
    website: cloud.fedoraproject.org
    path: /fedora-atomic-latest.x86_64.qcow2
    target: https://download.fedoraproject.org/pub/fedora/linux/releases/22/Cloud/x86_64/Images/Fedora-Cloud-Atomic-22-20150521.x86_64.qcow2
